//
// Created by sjjmw on 2/22/2022.
//

#ifndef LEETCODE__16_H
#define LEETCODE__16_H
int main() {
    int n;
    while (scanf("%d",&n) != EOF /* condition */)
    {
        int sum=0;
        for(int i=1;i<=n;i++){
            if(n%i==0){
                sum+=i;
            }
        }
        printf("%.2f",float(sum)/n);
    }
    return 0;
}
#endif //LEETCODE__16_H
